<?php
defined('IN_TS') or die('Access Denied.');
	if($page){
	$star = 24*$page;
	}else{
	$star=0;
	}
	$gonext = $page+2;
	
	$gobef = $gonext-2;
	
	$alltopicNum = $db->once_num_rows("select * from ".dbprefix."group_topics");
	
	$isgonext = $alltopicNum-$gonext*24;
	
	$title = $TS_SITE['base']['site_subtitle'];
	
	$arrTag = $db->fetch_all_assoc("select * from ".dbprefix."tag order by count_topic desc limit 15");
	
	$sql = "select * from ".dbprefix."group_topics where isphoto='1' and isshow='0' and istop='1' order by addtime desc limit ".$star.",24";
	
	$arrTTopicsall = $db->fetch_all_assoc($sql);
	
	$userid = intval($TS_USER['user']['userid']);
	
	include 'letutao/showlist.php';
	
	include template("index");